﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectShare
{
    public class DataCheck
    {
        public static bool isNumber(string str)
        {
            double result;
            if (!string.IsNullOrEmpty(str))
            {
                try
                {
                    result = double.Parse(str);
                    return true;
                }
                catch (Exception e)
                {
                    return false;
                }

            }
            else
            {
                return false;
            }
        }
    }
}
